<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>全部用户</title>
<style type="text/css">
	td{
		text-align: center;
	}
	tr{
		height: 40px
	}
	#xpz{
		margin-top: 50px;
	}
	body{
		background-color:#FFF5EE;
	}
	table.t1 {  
        margin-top:10px;  
        margin-left:20px;  
        margin-right:20px;  
        margin-bottom:5px;  
        background-color: #FFF;  
        background:#EEF4F9;  
        border: none;  
        border: 1;  
        color:#003755;  
        border-collapse:collapse;  
        font: 20px  "楷体";  
	}  
  
	table.t1 th{  
	        background:#7CB8E2;  
	        color:#fff;  
	        padding:6px 4px;  
	        text-align:center;  
	}  
	  
	table.t1 td{  
	        background:#C7DDEE none repeat-x scroll center left;  
	        color:#000;  
	        padding:4px 2px;  
	}  
	  
	table.t1 a{  
	        text-decoration:none;  
	        height:1em;  
	}  
	  
	table.t1 a:link, table.t1  a:visited{  
	        color:#3366CC;  
	}
	table.t1  a:hover{ 
	        color:#B50000;  
	        text-decoration:underline;  
	}  
</style>
<script type="text/javascript">
		function myFunction(str) {
			var r = confirm("确认销户？");
			if (r == true) {
				window.location = 'Suoyou?method=delete&id=' + str;
			} else {
				return false;
			}
		}
</script>
</head>
<body>
<center>
<div id="xpz">
	<img alt="" src="beijing/logo.jpg" width="650px" height="180px">
</div>
<div id="yjc">
<br/>
	<input type="button" value="返回" onclick="window.location='glwelcome.jsp'">
	<table border="2" class="t1">
	<h1>银行全部用户表</h1>
		<thead>
			<tr>
				<th>卡号</th>
				<th>姓名</th>
				<th>存款</th>
				<th>手机号</th>
				<th>地址</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${list}" var="u">
				<tr>
					<td width="200px">${u.yhm}</td>
					<td width="150px">${u.name}</td>
					<td width="150px">${u.money}</td>
					<td width="150px">${u.phone}</td>
					<td width="150px">${u.dz}</td>
					<td width="250px">
						<input type="button" value="修改" onclick="window.location='Suoyou?method=update&id=${u.id}'">
						&emsp;&emsp;
						<button value="${u.id}" onclick="myFunction(this.value)" >销户</button>
					</td>		
				</tr>
			</c:forEach>	
		</tbody>
	</table>	
</div>
</center>
</body>
</html>